package com.asset.salesforce.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the follow_center database table.
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name="follow_center")
public class FollowCenter implements Serializable{
	
	private Integer id;
	private Employee follower;
	private String followedType;
	private Date date;
	private Integer followedId;
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="follow_center_id_seq")
	@SequenceGenerator(name="follow_center_id_seq",sequenceName="follow_center_id_seq",allocationSize=1)
	public Integer getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * @return the follower
	 */
	@ManyToOne
	@JoinColumn(name="follower_id")
	public Employee getFollower() {
		return follower;
	}
	/**
	 * @param follower the follower to set
	 */
	public void setFollower(Employee follower) {
		this.follower = follower;
	}
	/**
	 * @return the followedType
	 */
	@Column(name="followed_type")
	public String getFollowedType() {
		return followedType;
	}
	/**
	 * @param followedType the followedType to set
	 */
	public void setFollowedType(String followedType) {
		this.followedType = followedType;
	}
	/**
	 * @return the date
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="date")
	public Date getDate() {
		return date;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}
	/**
	 * @return the followedId
	 */
	@Column(name="followed_id")
	public Integer getFollowedId() {
		return followedId;
	}
	/**
	 * @param followedId the followedId to set
	 */
	public void setFollowedId(Integer followedId) {
		this.followedId = followedId;
	}
}
